package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.base.resutl.RestResponse;
import com.xuecheng.content.model.dto.AddCourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author author
 * @since 2024-06-22
 */
public interface ICourseTeacherService extends IService<CourseTeacher> {

    /**
     * 查询课程相关教师接口
     *
     * @param companyId 机构ID
     * @param courseId  课程ID
     * @return
     */
    public List<CourseTeacher> getCourseTeacher(Long companyId, Long courseId);

    /**
     * 添加/修改课程教师接口
     * @param addCourseTeacherDto 接收添加课程教师信息类
     */
    public void saveCourseTeacher(AddCourseTeacherDto addCourseTeacherDto,Long companyId);

    /**
     * 删除教师接口
     * @param courseId 课程id
     * @param teacherId 教师id
     */
    RestResponse deleteCourseTeacher(Long courseId, Long teacherId);
}
